<?php

class TestController extends Zend_Controller_Action
{
    public function init()
    {
        Zend_Layout::getMvcInstance()->disableLayout();
        $this->_helper->getHelper('viewRenderer')->setNoRender();
        $this->view = $this->getInvokeArg ( 'bootstrap' )->getResource ( 'smarty' );
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
//        echo "<p>人，诗意地栖居大地……</p>";

//        $a = new Zend_Exception('ceshi');
//        error_writeLog::phpLog($a);
//        echo 1/0;
//        echo '<script type="application/javascript">test();</script>';
        
//        $a = new Ms_Model_Test();
////        $a->getUsers(array('test'=>11));
//        $a->getUsers();
//        exit('test');
        $this->view->book = 'Hello World! ';
        $this->view->author = 'by smarty';
        $this->view->render('test/index.tpl');
    }


}

